package com.qf.oop.fengzhuang;

/**
 * 符合JavaBean规范的Cat类
 */
public class Cat {

   private String breed;

   private int age;

   private String sex;


    public Cat() {
    }

    public Cat(String breed, int age, String sex) {
        this.breed = breed;
        this.age = age;
        this.sex = sex;
    }

    public void fly(){
       System.out.println("后空翻");
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
